package game.ui.hud
{
	import com.greensock.*;
	import engine.asset.*;
	import engine.core.*;
	import engine.network.*;
	import engine.social.*;
	import flash.display.*;
	import flash.events.*;
	import flash.geom.*;
	import flash.text.*;
	import game.*;
	import game.actor.*;
	import game.localization.*;
	import game.store.*;
	import game.ui.controls.*;
	import game.ui.core.*;
	//import game.ui.data.*;
	//import game.ui.events.*;
	//import game.ui.layouts.*;
	
	public class RxHud extends RxUIElement
	{
		private var m_questTracker:RxQuestTracker;
		
		/*
		private var m_controlPod:RxUIElement;
		private var m_goldDisplay:RxNumberDisplay;
		private var m_platinumDisplay:RxNumberDisplay;
		private var m_skillBar:RxSkillBar;
		private var m_consumableBar:RxSkillBar;
		
		private var m_actionBarAssignPanel:RxActionBarAssignPanel;
		private var m_partyPod:RxUIElementContainer;
		private var m_leavePartyButton:RxRectangularButton;
		private var m_leftSkillBarGate:RxBitmap;
		private var m_rightSkillBarGate:RxBitmap;
		private var m_skillBarUnlocked:Boolean = false;
		private var m_hudButtons:Array;
		private var m_optionsButton:RxHudMenuButton;
		private var m_inventoryButton:RxHudMenuButton;
		private var m_skillsButton:RxHudMenuButton;
		private var m_mapButton:RxHudMenuButton;
		private var m_friendsButton:RxHudMenuButton;
		private var m_storeButton:RxHudMenuButton;
		private var m_reportBugButton:RxRectangularButton;
		private var m_enemyHealthBar:RxEnemyHealthBar;
		private var m_healthBar:RxProgressBar;
		private var m_energyBar:RxProgressBar;
		private var m_xpBar:RxProgressBar;
		private var m_levelDisplay:RxTextLabel;
		private var m_buffBar:RxDataGrid;
		private var m_buffArray:RxArrayCollection;
		private var m_heroDead:Boolean = false;
		private var m_healthOverlay:Shape;
		private var m_mapNameField:RxTextLabel;
		private var m_keyboardWarning:RxNotification;
		*/
		public function RxHud()
		{
			//this.CreateChildren();
			//RxUI.addEventListener(RxUIEvent.CURRENCY_UPDATED, this.OnCurrencyUpdated);
			//RxLocalizationManager.AddLocaleChangeCallback(this.OnLocaleChanged);
		}
		
		public function OnGamePanelToggled() : void
		{
			/*
			var _loc_1:int = 0;
			var _loc_2:RxButtonBase = null;
			var _loc_3:* = RxUI.GetActiveGamePanelId();
			var _loc_4:* = this.m_hudButtons.length;
			var _loc_5:int = 0;
			while (_loc_5 < _loc_4)
			{
				
				_loc_2 = this.m_hudButtons[_loc_5] as RxButtonBase;
				_loc_1 = _loc_2.GetData() as int;
				_loc_2.toggled = _loc_1 == _loc_3;
				_loc_5++;
			}
			return;*/
		}
		
		public function OnChangingMap() : void
		{
			this.ClearQuestStates();
		}
		
		public function ClearQuestStates() : void
		{
			if (this.m_questTracker)
			{
				//this.m_questTracker.ClearQuestStates();
			}
		}
	}
}